package com.buaa.daas.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.buaa.daas.entity.StuFeedback;
import com.buaa.daas.mapper.StuFeedbackMapper;
import com.buaa.daas.service.StuFeedbackService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author WangKangMing
 * @since 2021-06-04
 */
@Service
public class StuFeedbackServiceImpl extends ServiceImpl<StuFeedbackMapper, StuFeedback> implements StuFeedbackService {

    @Autowired
    private StuFeedbackMapper stuFeedbackMapper;

    @Override
    public List<StuFeedback> findAll() {
        List<StuFeedback> stuFeedbacks = stuFeedbackMapper.selectList(new QueryWrapper<StuFeedback>());
        return stuFeedbacks;
    }
}
